
export default {
    option:{
        title: {
            text: "仓库1设备",
        },
        tooltip: {
            trigger: "axis",
        },
        legend: {
            data: ["在库设备", "借出设备", "全部设备"],
        },
        toolbox: {
            show: true,
            feature: {
                dataView: { show: true, readOnly: false },
                magicType: { show: true, type: ["line", "bar"] },
                restore: { show: true },
                saveAsImage: { show: true },
            },
        },
        calculable: true,
        xAxis: [
            {
                type: "category",
                axisLabel: {
                    show: true,                               
                    textStyle: {
                       color: '#595C61'
                    },
                    formatter:function(value){
                       return value.split("").join("\n");
                    }
               }
            },
        ],
        yAxis: [
            {
                type: "value",
            },
        ],
        series: [
            {
                name: "在库设备",
                type: "bar",
            },
            {
                name: "借出设备",
                type: "bar",
            },
            {
                name: "全部设备",
                type: "bar",
            },
        ]
    }
};
